{template 'admin','header'}
<table cellpadding="0" cellspacing="1" class="table_list">
    <caption>稿件状态管理</caption>
    <tr>
        <td class="align_l">
            <a href="{$self_url}?action=status_add"><font color="red">添加状态</font></a>
        </td>
    </tr>
</table>
<table cellpadding="0" cellspacing="1" class="table_list">
    <caption>稿件状态列表</caption>
    <tr>
        <th>标识</th>
        <th width="150">名称</th>
        <th width="80">值</th>
        <th>描述</th>
        <th width="100">类型</th>
        <th width="100">管理操作</th>
    </tr>
    {loop $data $r}
    <tr>
        <td class="align_l" width='150'>{$r['id']}</td>
        <td class="align_c">{$r['name']}</td>
        <td class="align_c">{$r['value']}</td>
        <td>{$r['description']}</td>
        <td class="align_c">{if $r['issystem']}<font color="red">系统</font>{else}自定义{/if}</td>
        <td class="align_c">
            {if !$r['issystem']}
            <a href="{$self_url}?action=status_edit&value={$r['value']}">修改</a>&nbsp;|&nbsp;
            <a href="javascript:void(0)" onclick="my_request('{format_url("$self_url?action=status_delete&value=".$r['value'])}','确定要删除该状态吗？')">删除</a>
            {else}<span style="color:#ccc">修改&nbsp;|&nbsp; 删除</span>
            {/if}
        </td>
    </tr>
    {/loop}
</table>
{template 'admin','footer'}
